package com.ruoyi.eqmonitor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 巡查记录对象 opt_patrol_record
 * @author ruoyi
 * @date 2022-12-05
 */
public class OptPatrolRecord extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** Id */
	@TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 巡查编号 */
    @Excel(name = "巡查编号")
    private String code;

    /** 任务Id */
    @Excel(name = "任务Id")
    private Long taskId;

    /** 巡查对象Id */
    @Excel(name = "巡查对象Id")
    private Long checkUserId;

    /** 巡查对象姓名 */
    @Excel(name = "巡查对象姓名")
    private String checkUserName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 结果记录 */
    @Excel(name = "结果记录")
    private String resultRecord;

    /** 现场照片 */
    @Excel(name = "现场照片")
    private String fileIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setCheckUserId(Long checkUserId) 
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId() 
    {
        return checkUserId;
    }
    public void setCheckUserName(String checkUserName) 
    {
        this.checkUserName = checkUserName;
    }

    public String getCheckUserName() 
    {
        return checkUserName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setResultRecord(String resultRecord) 
    {
        this.resultRecord = resultRecord;
    }

    public String getResultRecord() 
    {
        return resultRecord;
    }
    public void setFileIds(String fileIds) 
    {
        this.fileIds = fileIds;
    }

    public String getFileIds() 
    {
        return fileIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("taskId", getTaskId())
            .append("checkUserId", getCheckUserId())
            .append("checkUserName", getCheckUserName())
            .append("startTime", getStartTime())
            .append("finishTime", getFinishTime())
            .append("deviceCode", getDeviceCode())
            .append("deviceName", getDeviceName())
            .append("resultRecord", getResultRecord())
            .append("remark", getRemark())
            .append("fileIds", getFileIds())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}